<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>llygrid demo</title>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
    <meta http-equiv="pragma" content="no-cache"/>
	<meta http-equiv="cache-control" content="no-cache"/>
  
   <script src="../../../jquery.js" type="text/javascript" class="view-source"></script>
   <script src="../../../common.js" type="text/javascript" class="view-source"></script>
   <link   href="../../../../themes/mobile/style.css" type="text/css" rel="stylesheet" class="view-source" />
   <script src="../../dialog/jquery.dialog.js" type="text/javascript" class="view-source"></script>
   <link   href="../../dialog/jquery.dialog.css" type="text/css" rel="stylesheet"  class="view-source"/>
  
   <script src="../jquery.listselectdialog.js" type="text/javascript" class="view-source"></script>
   <link   href="../jquery.listselectdialog.css" type="text/css" rel="stylesheet"  class="view-source"/>
  <script src="../../demo.js"></script>
	<link href="../../demo.css" rel="stylesheet">
   <script type="text/javascript" class="view-source noparse">

	$(function(){
		var treeGridSelect = {
				dataServiceUrl:dataServiceUrl,
				title:'左右选择',//页面显示标题
				valueField:".value-field",
				labelField:".label-field",
				key:{value:'id',label:'text'},//对应value和label的key
				CommandName : 'java.tree.command',
				params : {
					daoBeanName:'dao',
					sqlId : 'simpleselect.demo'
				},
				queryFields:[
					{key:"ID",label:"编号",width:"100"},
					{key:"TEXT",label:"名称",width:"100"}
				]
		} ;

		$(".tree-grid-m-select").click(function(){
			$.listselectdialog( treeGridSelect) ;
		}) ;
		
   	});
   </script>
   
</head>
<body>
树列表多选选择:<br>
value field:<input type="text" class="value-field" value="1,11"/><br/>
label field:<input type="text" class="label-field" value="广东省,广州市"/><br/>
<button class="tree-grid-m-select">选择</button>
<br/><br/>

</body>
</html>
